package com.wxx.design.decorator.v2;

import java.util.concurrent.ConcurrentLinkedDeque;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/18 15:42
 */
public class Test {
    public static void main(String[] args) {
        AbstractBatterCake abstractBatterCake;
        abstractBatterCake = new BatterCake();
        abstractBatterCake = new EggDecorator(abstractBatterCake);
        abstractBatterCake = new SausageDecorator(abstractBatterCake);
        abstractBatterCake = new EggDecorator(abstractBatterCake);
        System.out.println(abstractBatterCake.getDesc() + ",销售价格:" + abstractBatterCake.cost());

        new ConcurrentLinkedDeque<>();
    }
}
